package org.wolfengi.monitor.web;


import org.wolfengi.monitor.entity.FShipOverviewCount;
import org.wolfengi.monitor.service.FShipOverviewCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wolfengi
 * @since 2020-05-22
 */
@Controller
@RequestMapping("/shipOverview")
public class FShipOverviewCountController {
    @Autowired
    private FShipOverviewCountService fShipOverviewCountService;

    @RequestMapping("/count")
    @ResponseBody
    public List count(){
        List<FShipOverviewCount> list = fShipOverviewCountService.list();
        return list;
    }
}
